package com.qq.weixin.mp.message.hxexp.model.send;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.hxexp.weixin.common.jaxb.CDATAAdapter;

/**
 * 回复给微信服务器的文本消息
 *
 * @author li.jiang
 *
 */
@XmlRootElement(name = "xml")
@XmlAccessorType(XmlAccessType.FIELD)
public final class TextReplyJaxb extends BaseReplyJaxb {

    private static final long serialVersionUID = -591418991289299531L;
    /**
     * 回复的消息内容（换行：在content中能够换行，微信客户端就支持换行显示）
     */
    @XmlElement(name = "Content")
    @XmlJavaTypeAdapter(value = CDATAAdapter.class)
    private String content;

    /**
     * 构造函数
     */
    public TextReplyJaxb() {
    }
    /**
     * @return the content
     */
    public String getContent() {
        return content;
    }

    /**
     * @param content the content to set
     */
    public void setContent(String content) {
        this.content = content;
    }

    /*
     * (non-Javadoc)
     *
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString() {
        return "TextReplyJaxb [ToUserName=" + this.getToUserName() + ", FromUserName=" + this.getFromUserName() + ", CreateTime="
                + this.getCreateTime() + ", MsgType=" + this.getMsgType() + ", Content=" + this.getContent() + "]";
    }

}
